package com.yvan.codeslave.batch;

import com.yvan.platform.Settings;
import lombok.SneakyThrows;
import lombok.val;

public class TestMain {

    @SneakyThrows
    public static void main(String[] args) {
        CodeSlave.INSTANCE.settings = new Settings("./codeslave/settings.yml" );
        CodeSlave.INSTANCE.reload();

        val v = CodeSlave.INSTANCE.processModule("D:\\Projects\\yvan\\codeslave-build\\codeslave\\modules\\SysDict.xml" );
        System.out.println(v.getKey()
                .set("_root", CodeSlave.INSTANCE.settings.global)
                .toYaml());

        CodeSlave.INSTANCE.run("D:\\Projects\\yvan\\codeslave-build\\codeslave\\modules\\SysDict.xml" );
    }
}
